package com.bootdo.project.service.impl;

import com.bootdo.project.domain.TBusiness;
import com.bootdo.project.dao.TBusinessMapper;
import com.codegen.vo.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by xxxx on 2019/03/19.
 */
@Service
public class TBusinessService {

	@Autowired
    private TBusinessMapper tBusinessMapper;
    
    public int deleteByPrimaryKey(Integer id){
        return tBusinessMapper.deleteByPrimaryKey(id);
    }

    public int insert(TBusiness record){
        return tBusinessMapper.insert(record);
    }

    public int insertSelective(TBusiness record){
        return tBusinessMapper.insertSelective(record);
    }

    public TBusiness selectByPrimaryKey(Integer id){
        return tBusinessMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TBusiness record){
        return tBusinessMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(TBusiness record){
        return tBusinessMapper.updateByPrimaryKey(record);
    }

    public List<TBusiness> selectByCondition(TBusiness record){
        return tBusinessMapper.selectByCondition(record);
    }

    public List<TBusiness> selectAll(){
        return tBusinessMapper.selectAll();
    }

    public List<TBusiness> selectByPage(Page<TBusiness> page){
        return tBusinessMapper.selectByPage(page);
    }

    public Integer count(TBusiness record){
        return tBusinessMapper.count(record);
    }

    public int deleteByCondition(TBusiness record){
        return tBusinessMapper.deleteByCondition(record);
    }

}
